﻿@model HackApp.Models.RegisterModel
@{
    ViewBag.Title = "Register";
}

<div class="row-fluid">
                
    <!--Info column on the left-->
    <div class="span3 well">
		<h3>Join us!</h3>
        <p>Getting ready for the next hackathon and you don't know where to start?</p> <p>Are you a passionate developer who has always been searching for a challenge or just an end user with a briliant ideea?</p> <p>Join us and start getting involved by proposing ideas, creating teams and voting apps.</p>
    </div>
    
    <!--Main content with login form-->    	
    <div class="span9">

    <h3>Create Account</h3>
    <hr>

    @using (Html.BeginForm()) {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true,"Registration unsuccessful", new { @class="alert alert-error" })

        <div class="alert alert-info">Passwords must be a minimum of 6 characters in length.</div>
        
        @Html.LabelFor(m => m.UserName)
        @Html.TextBoxFor(m => m.UserName, new { @class="span5" })
        @Html.ValidationMessageFor(m => m.UserName)

        @Html.LabelFor(m => m.Password)
        @Html.PasswordFor(m => m.Password, new { @class="span5" })
        @Html.ValidationMessageFor(m => m.Password)

        @Html.LabelFor(m => m.ConfirmPassword)
        @Html.PasswordFor(m => m.ConfirmPassword, new { @class="span5" })
        @Html.ValidationMessageFor(m => m.ConfirmPassword)

        <div class="margin-top">
            <input class="btn btn-info btn-large" type="submit" value="Register" />
        </div>
            
    }
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
